package com.easyar.imgbannerwheeltest;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import android.os.Bundle;

import com.alexander.imgbannerwheelview.ImgBannerWheelView;

public class MainActivity extends AppCompatActivity
{
    private static final String TAG = "MainActivity";
    private int[] images = new int[]{R.drawable.bg_homebanner_0, R.drawable.bg_homebanner_1, R.drawable.bg_homebanner_2};
    private ImgBannerWheelView imgBannerWheelView;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        imgBannerWheelView = findViewById(R.id.imgBannerWheelView);
        imgBannerWheelView.setImgs(images);
        FragmentManager fragmentManager = getSupportFragmentManager();
    }

//    @Override
//    protected void onCreate(@Nullable Bundle savedInstanceState)
//    {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//        FragmentManager fragmentManager = getSupportFragmentManager();
//        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
//        fragmentTransaction.replace(R.id.fragment_Layout, new TestFragment(), TestFragment.TAG);
//        fragmentTransaction.commitAllowingStateLoss();
//    }
}
